[1,2,3]
[1,2,4]
[1,9]
[2,0]
[9]
[1,0]
class Solution: def plusOne(self , nums: List[int]) -> List[int]: # write code here n = int(''.join(map(str,nums)))+1 return [int(d) for d in str(n)]
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题